package com.sunnada.edu.system.pub.common;

import java.util.List;

/**
 * 树实体类
 * 
 * @author cbin
 * @version 1.0
 * 
 */
public class Tree {
	private String id;
	private String name;
	private String type;
	private String code;
	private String allAreaName;
	private String parentCode;
	private List<Tree> children;
	public String getParentCode() {
		return parentCode;
	}

	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}

	// 是否隐藏复选框
	private boolean nocheck;
	// 设置是否允许点击
	private boolean click;
	// 设置默认的勾选状态
	private boolean checked;
	// 节点是否为父节点
	private boolean isParent;
	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	public boolean getIsParent() {
		return isParent;
	}

	public void setIsParent(boolean isParent) {
		this.isParent = isParent;
	}


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setParent(boolean isParent) {
		this.isParent = isParent;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Tree> getChildren() {
		return children;
	}

	public void setChildren(List<Tree> children) {
		this.children = children;
	}

	public boolean isNocheck() {
		return nocheck;
	}

	public void setNocheck(boolean nocheck) {
		this.nocheck = nocheck;
	}

	public boolean isClick() {
		return click;
	}

	public void setClick(boolean click) {
		this.click = click;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public String getAllAreaName() {
		return allAreaName;
	}

	public void setAllAreaName(String allAreaName) {
		this.allAreaName = allAreaName;
	}
	
}
